<?php
$s_good = $this->Session->flash('good');
$s_bad = $this->Session->flash('bad');
if ($s_good || $s_bad) {
    if ($s_good) {
        ?>    
        <div id="flashMessage" class="alert alert-success"><?php echo $s_good; ?></div>
    <?php } else { ?>
        <div id="flashMessage" class="alert alert-error"><?php echo $s_bad; ?></div>    

        <?php
    }
}
?>